import request from '@/utils/request'

// 查询kettle参数信息列表
export function listParam(query) {
    return request({
        url: '/kettle/param/list',
        method: 'get',
        params: query
    })
}

// 查询kettle参数信息详细
export function getParam(id) {
    return request({
        url: '/kettle/param/' + id,
        method: 'get'
    })
}

// 新增kettle参数信息
export function addParam(data) {
    return request({
        url: '/kettle/param',
        method: 'post',
        data: data
    })
}

// 修改kettle参数信息
export function updateParam(data) {
    return request({
        url: '/kettle/param',
        method: 'put',
        data: data
    })
}

// 删除kettle参数信息
export function delParam(id) {
    return request({
        url: '/kettle/param/' + id,
        method: 'delete'
    })
}
